package com.sarc.games.focus;

import java.nio.FloatBuffer;

import javax.microedition.khronos.opengles.GL10;

public class Energy 
{
	private final static int CIRCLE_RESOLUTION = 50;
	private final static double PI = 3.141592654;
	private double energyLevel;
	private double x,y,radius;
	
	private float color[];
	private float vertices[];
	private FloatBuffer vertexBuffer;
	
	public Energy()
	{
		this(0,0,1,5);
	}
	
	public Energy(double x, double y, double radius, double energyLevel)
	{
		setLocation(x,y,radius);
		setEnergyLevel(energyLevel);
	}
	
	public double getArea()
	{
		return 2 * PI * radius;
	}
	
	public double getEnergyLevel()
	{
		return energyLevel;
	}
	
	public double getX()
	{
		return x;
	}
	
	public double getY()
	{
		return y;
	}
	
	public void setEnergyLevel(double energyLevel)
	{
		this.energyLevel = energyLevel;
	}
	
	public void setLocation(double x, double y, double radius)
	{
		this.x = x;
		this.y = y;
		this.radius = radius;
	}
	
	public void castOnSquare(Square square)
	{
		
	}
	
	public void update(long frameTime)
	{
		
	}
	
	void render(GL10 gl)
	{
		
	}
}
